SET(SOURCE_FILES 
	${KLAYGE_PROJECT_DIR}/Tools/src/TexViewer/TexViewerCore/TexViewerCore.cpp
)

SET(HEADER_FILES 
	${KLAYGE_PROJECT_DIR}/Tools/src/TexViewer/TexViewerCore/TexViewerCore.hpp
)

SET(EFFECT_FILES 
	${KLAYGE_PROJECT_DIR}/Tools/media/TexViewer/TexViewer.fxml
)

SOURCE_GROUP("Source Files" FILES ${SOURCE_FILES})
SOURCE_GROUP("Header Files" FILES ${HEADER_FILES})
SOURCE_GROUP("Resource Files" FILES ${RESOURCE_FILES})
SOURCE_GROUP("Effect Files" FILES ${EFFECT_FILES})
SOURCE_GROUP("Post Processors" FILES ${POST_PROCESSORS})
SOURCE_GROUP("UI Files" FILES ${UI_FILES})

ADD_LIBRARY(TexViewerCore SHARED ${SOURCE_FILES} ${HEADER_FILES} ${RESOURCE_FILES} ${EFFECT_FILES} ${POST_PROCESSORS} ${UI_FILES})

ADD_DEPENDENCIES(TexViewerCore AllInEngine)

SET_TARGET_PROPERTIES(TexViewerCore PROPERTIES
	OUTPUT_NAME TexViewerCore
	FOLDER "KlayGE/Tools/TexViewer"
)

target_link_libraries(TexViewerCore
	PUBLIC
		KlayGE_Core
)
